<div class=' new-specs-item'>
<div style='border:1px solid #e7eaec;padding:10px;margin-bottom: 10px;' >
    <div class="form-group">
        <div class="col-sm-12">
            <div class='input-group'>
                <input name="goods_specs_title" type="text" class="form-control" value="{$goods['goods_specs_title']}" placeholder="请输入规格名称"/>
                <div class='input-group-btn'>
                    <a href="javascript:;" class='btn btn-info add-new-specs-item'><i class="fa fa-plus"></i> 添加选项</a>
                    <a href="javascript:void(0);" class='btn btn-danger' onclick="removeNewSpec(0)"><i class="fa fa-remove"></i></a>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-12">
            <div id='new_specs_item_box' class='new_specs_item_items' style="overflow: hidden;">
            {loop $newSpecsArr $newSpecs}
            {template 'system/store/tpl/new_specs_item'}
            {/loop}
        </div>
    </div>
</div>
</div>
</div>
<script type="text/javascript">
    require(['jquery.ui'],function(){
        $('.new_specs_item_items').sortable({
            handle:'.deam-item',
            stop: function(){
                //refreshOptions();
            }
        });
    });
</script>
</script>